package com.anolesoft.yr.mbus.base.service;

import com.anolesoft.yr.mbus.base.dto.BaseCompanyDTO;
import com.anolesoft.yr.util.PageData;

import java.util.List;
import java.util.Optional;

/**
 * @author zhj
 * @date 2020/8/9 9:46
 */
public interface BaseCompanyService {
    int create(BaseCompanyDTO baseCompanyDTO);

    int modify(BaseCompanyDTO baseCompanyDTO);

    int remove(String id);

    int removeBatch(List<String> ids);

    List<BaseCompanyDTO> selectAll();

    PageData<List<BaseCompanyDTO>> selectAll(Integer limit, Integer curr);

    Optional<BaseCompanyDTO> selectOneById(String id);

    List<BaseCompanyDTO> selectList(BaseCompanyDTO baseCompanyDTO);

    PageData<List<BaseCompanyDTO>> selectList(BaseCompanyDTO baseCompanyDTO, Integer limit, Integer curr);
}
